<template>
  <div>
    <div class="content">
      <TableList :linklist="linklist" @JumpEditPage="getData" />
      <router-view></router-view>
    </div>
  </div>
</template>

<script>
import TableList from "../../components/AddOrderList.vue";
export default {
  name: "AddOrder",
  data() {
    return {
      // 表头名称
      linklist: [
        {
          id: 0,
          name: "客户名称",
          isRouter: true,
          url: "/order/addorderpage",
        },
        {
          id: 1,
          name: "客户类型",
          isRouter: false,
        },
        {
          id: 2,
          name: "联系人",
          isRouter: false,
        },
        {
          id: 3,
          name: "手机号码",
          isRouter: false,
        },
        {
          id: 4,
          name: "QQ",
          isRouter: false,
        },
        {
          id: 5,
          name: "录入时间",
          isRouter: false,
        },
        {
          id: 6,
          name: "业务员",
          isRouter: false,
        },
      ],
    };
  },
  components: {
    TableList,
  },
  methods: {
    getData(row) {
      this.$router.push({ path: "/order/addorderpage", query: { editInfo: row } });
    },
  },
};
</script>

<style lang="scss" scoped>
.title {
  color: rgb(84, 92, 100);
}
</style>